<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>康养基地 - 贵州四季康养文旅</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tdesign-icons-vue-next/dist/index.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f5f5f5;
            color: #333;
            padding-bottom: 60px;
        }
        .header {
            background-color: #0052d9;
            color: white;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .back-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .filter-section {
            background-color: white;
            position: sticky;
            top: 56px;
            z-index: 99;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .filter-tab {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            font-size: 14px;
            position: relative;
        }
        .filter-tab.active {
            color: #0052d9;
            font-weight: 500;
        }
        .filter-tab.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background-color: #0052d9;
            border-radius: 1px;
        }
        .filter-tab .icon {
            margin-left: 4px;
            transition: transform 0.2s;
        }
        .filter-tab.open .icon {
            transform: rotate(180deg);
        }
        .filter-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s;
            z-index: 98;
        }
        .filter-dropdown.open {
            max-height: 300px;
            overflow-y: auto;
        }
        .filter-option {
            padding: 12px 16px;
            font-size: 14px;
            border-bottom: 1px solid #f0f0f0;
        }
        .filter-option.selected {
            color: #0052d9;
            font-weight: 500;
        }
        .category-tabs {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            background-color: white;
            padding: 12px 0;
        }
        .category-tab {
            padding: 6px 16px;
            margin: 0 4px;
            border-radius: 16px;
            font-size: 14px;
            flex-shrink: 0;
        }
        .category-tab.active {
            background-color: #e0f2fe;
            color: #0052d9;
            font-weight: 500;
        }
        .base-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .base-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        .tag {
            background-color: rgba(0,82,217,0.1);
            color: #0052d9;
            border-radius: 4px;
            padding: 2px 8px;
            font-size: 12px;
            margin-right: 6px;
            display: inline-block;
        }
        .rating {
            display: inline-flex;
            align-items: center;
            color: #ff9500;
            font-size: 14px;
        }
        .rating-star {
            margin-right: 2px;
        }
        .bottom-nav {
            border-top: 1px solid #eee;
            background: white;
            padding: 8px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #666;
        }
        .bottom-nav-item.active {
            color: #0052d9;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="header px-4 py-3 flex items-center">
        <div class="back-btn" onclick="history.back()">
            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-5 h-5">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
            </svg>
        </div>
        <div class="flex-1 text-center font-medium">康养基地</div>
        <div class="w-8 h-8 flex items-center justify-center">
            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-5 h-5">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
            </svg>
        </div>
    </div>
    
    <!-- 筛选栏 -->
    <div class="filter-section">
        <div class="flex border-b border-gray-100 relative">
            <div class="filter-tab" onclick="toggleFilter('type')">
                <span>类型</span>
                <span class="icon">▼</span>
                
                <!-- 类型下拉菜单 -->
                <div class="filter-dropdown" id="type-dropdown">
                    <div class="filter-option selected">全部类型</div>
                    <div class="filter-option">森林康养</div>
                    <div class="filter-option">温泉疗养</div>
                    <div class="filter-option">中医养生</div>
                    <div class="filter-option">运动康养</div>
                    <div class="filter-option">心理疗养</div>
                </div>
            </div>
            
            <div class="filter-tab" onclick="toggleFilter('area')">
                <span>地区</span>
                <span class="icon">▼</span>
                
                <!-- 地区下拉菜单 -->
                <div class="filter-dropdown" id="area-dropdown">
                    <div class="filter-option selected">全部地区</div>
                    <div class="filter-option">贵阳市</div>
                    <div class="filter-option">遵义市</div>
                    <div class="filter-option">黔东南州</div>
                    <div class="filter-option">黔南州</div>
                    <div class="filter-option">黔西南州</div>
                    <div class="filter-option">铜仁市</div>
                    <div class="filter-option">毕节市</div>
                    <div class="filter-option">安顺市</div>
                    <div class="filter-option">六盘水市</div>
                </div>
            </div>
            
            <div class="filter-tab" onclick="toggleFilter('price')">
                <span>价格</span>
                <span class="icon">▼</span>
                
                <!-- 价格下拉菜单 -->
                <div class="filter-dropdown" id="price-dropdown">
                    <div class="filter-option selected">全部价格</div>
                    <div class="filter-option">¥0-500</div>
                    <div class="filter-option">¥500-1000</div>
                    <div class="filter-option">¥1000-2000</div>
                    <div class="filter-option">¥2000以上</div>
                </div>
            </div>
            
            <div class="filter-tab" onclick="toggleFilter('sort')">
                <span>排序</span>
                <span class="icon">▼</span>
                
                <!-- 排序下拉菜单 -->
                <div class="filter-dropdown" id="sort-dropdown">
                    <div class="filter-option selected">综合排序</div>
                    <div class="filter-option">好评优先</div>
                    <div class="filter-option">价格从低到高</div>
                    <div class="filter-option">价格从高到低</div>
                    <div class="filter-option">人气最高</div>
                </div>
            </div>
        </div>
        
        <!-- 分类标签 -->
        <div class="category-tabs px-2">
            <div class="category-tab active">全部</div>
            <div class="category-tab">森林康养</div>
            <div class="category-tab">温泉疗养</div>
            <div class="category-tab">中医养生</div>
            <div class="category-tab">运动康养</div>
            <div class="category-tab">心理疗养</div>
        </div>
    </div>
    
    <!-- 内容列表 -->
    <div class="p-3">
        <!-- 森林康养基地 -->
        <div class="base-card">
            <img src="https://images.unsplash.com/photo-1542401886-65d6c61db217" class="base-image" alt="梵净山森林康养基地">
            <div class="p-3">
                <h3 class="text-lg font-bold">梵净山森林康养基地</h3>
                <div class="flex mt-2">
                    <span class="tag">森林康养</span>
                    <span class="tag">世界遗产地</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    位于世界自然遗产地梵净山脚下，提供森林浴、中医养生、有氧徒步等多种康养项目，远离城市喧嚣，沉浸在大自然的怀抱中。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.9</span>
                        <span class="text-gray-500 ml-1">(328评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥598/人起</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>铜仁市江口县</div>
                    <div>距离市区约120km</div>
                </div>
            </div>
        </div>
        
        <!-- 温泉疗养基地 -->
        <div class="base-card">
            <img src="https://images.unsplash.com/photo-1531112333312-341944d8c5af" class="base-image" alt="黄果树温泉康养中心">
            <div class="p-3">
                <h3 class="text-lg font-bold">黄果树温泉康养中心</h3>
                <div class="flex mt-2">
                    <span class="tag">温泉疗养</span>
                    <span class="tag">SPA理疗</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    黄果树瀑布附近的天然温泉，富含多种矿物质，结合现代SPA技术与传统苗医理疗，舒缓身心，排毒养颜，提供全方位的身体护理。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.7</span>
                        <span class="text-gray-500 ml-1">(256评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥268/次起</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>安顺市镇宁县</div>
                    <div>距离市区约45km</div>
                </div>
            </div>
        </div>
        
        <!-- 中医养生基地 -->
        <div class="base-card">
            <img src="https://images.unsplash.com/photo-1512290923902-8a9f81dc236c" class="base-image" alt="贵阳中医药康养基地">
            <div class="p-3">
                <h3 class="text-lg font-bold">贵阳中医药康养基地</h3>
                <div class="flex mt-2">
                    <span class="tag">中医养生</span>
                    <span class="tag">药膳调理</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    融合贵州本土中医药文化与现代康养理念，提供中医诊疗、针灸推拿、药膳调理、养生课程等服务，助您平衡阴阳，调和气血。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.8</span>
                        <span class="text-gray-500 ml-1">(189评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥398/套餐起</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>贵阳市观山湖区</div>
                    <div>距离市区约8km</div>
                </div>
            </div>
        </div>
        
        <!-- 运动康养基地 -->
        <div class="base-card">
            <img src="https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b" class="base-image" alt="花溪运动康养中心">
            <div class="p-3">
                <h3 class="text-lg font-bold">花溪运动康养中心</h3>
                <div class="flex mt-2">
                    <span class="tag">运动康养</span>
                    <span class="tag">健身指导</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    集健身、运动康复、体质评估于一体的综合性运动康养中心，提供专业教练指导，科学健身方案，适合各年龄段人群的运动康养服务。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.6</span>
                        <span class="text-gray-500 ml-1">(156评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥168/次起</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>贵阳市花溪区</div>
                    <div>距离市区约15km</div>
                </div>
            </div>
        </div>
        
        <!-- 心理疗养基地 -->
        <div class="base-card">
            <img src="https://images.unsplash.com/photo-1506126613408-eca07ce68773" class="base-image" alt="百里杜鹃心灵驿站">
            <div class="p-3">
                <h3 class="text-lg font-bold">百里杜鹃心灵驿站</h3>
                <div class="flex mt-2">
                    <span class="tag">心理疗养</span>
                    <span class="tag">自然疗法</span>
                </div>
                <p class="text-sm text-gray-600 mt-2 line-clamp-2">
                    坐落于百里杜鹃景区内，结合自然疗法与心理疗愈，提供压力管理、情绪调节、正念冥想等服务，帮助都市人群缓解心理压力。
                </p>
                <div class="flex justify-between items-center mt-3">
                    <div class="rating">
                        <span class="rating-star">★</span>
                        <span>4.9</span>
                        <span class="text-gray-500 ml-1">(98评价)</span>
                    </div>
                    <div class="text-red-500 font-medium">¥498/2天起</div>
                </div>
                <div class="flex justify-between items-center mt-2 text-xs text-gray-500">
                    <div>毕节市大方县</div>
                    <div>距离市区约80km</div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-home"></i>
            <span>首页</span>
        </div>
        <div class="bottom-nav-item active">
            <i class="t-icon t-icon-browse"></i>
            <span>发现</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-shop"></i>
            <span>商城</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-chat"></i>
            <span>消息</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-user"></i>
            <span>我的</span>
        </div>
    </div>
    
    <script>
        // 筛选下拉菜单逻辑
        function toggleFilter(type) {
            const dropdown = document.getElementById(`${type}-dropdown`);
            const allDropdowns = document.querySelectorAll('.filter-dropdown');
            const allTabs = document.querySelectorAll('.filter-tab');
            
            // 关闭其他下拉菜单
            allDropdowns.forEach(item => {
                if (item !== dropdown) {
                    item.classList.remove('open');
                }
            });
            
            allTabs.forEach(tab => {
                if (!tab.contains(dropdown)) {
                    tab.classList.remove('open');
                }
            });
            
            // 切换当前下拉菜单
            dropdown.classList.toggle('open');
            dropdown.parentElement.classList.toggle('open');
        }
        
        // 点击选项
        document.querySelectorAll('.filter-option').forEach(option => {
            option.addEventListener('click', function(e) {
                e.stopPropagation();
                
                // 移除同级选项的选中状态
                const siblings = Array.from(this.parentElement.children);
                siblings.forEach(sibling => sibling.classList.remove('selected'));
                
                // 设置当前选项为选中状态
                this.classList.add('selected');
                
                // 关闭下拉菜单
                this.parentElement.classList.remove('open');
                this.parentElement.parentElement.classList.remove('open');
                
                // 更新筛选标签文本
                const filterText = this.textContent;
                const tabText = this.parentElement.parentElement.querySelector('span:first-child');
                tabText.textContent = filterText;
                
                // 这里可以添加筛选逻辑
                console.log('选择了:', filterText);
            });
        });
        
        // 点击页面其他区域关闭下拉菜单
        document.addEventListener('click', function(e) {
            if (!e.target.closest('.filter-tab')) {
                document.querySelectorAll('.filter-dropdown').forEach(dropdown => {
                    dropdown.classList.remove('open');
                });
                document.querySelectorAll('.filter-tab').forEach(tab => {
                    tab.classList.remove('open');
                });
            }
        });
        
        // 分类标签点击
        document.querySelectorAll('.category-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                document.querySelectorAll('.category-tab').forEach(t => {
                    t.classList.remove('active');
                });
                this.classList.add('active');
                
                // 这里可以添加分类筛选逻辑
                console.log('选择了分类:', this.textContent);
            });
        });
    </script>
</body>
</html> 